<div class="layuimini-container">
    <div class="layuimini-main" id="app">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">基本配置</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <form  class="layui-form layuimini-form">
                        <input type="hidden" name="field" value="user">
                        <div class="layui-form-item">
                            <label class="layui-form-label">注册方式</label>
                            <div class="layui-input-block">
                                <?php $register_type=(sysconfig('user','register_type')?:[]); ?>
                                <input type="checkbox" name="register_type[]" value="0" title="用户名" {if in_array(0,$register_type)}checked=""{/if}>
                                <input type="checkbox" name="register_type[]" value="1" title="邮箱" {if in_array(1,$register_type)}checked=""{/if}>
                                <input type="checkbox" name="register_type[]" value="2" title="手机" {if in_array(2,$register_type)}checked=""{/if}>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">开启验证码登录</label>
                            <div class="layui-input-block">
                                <?php $code_login=sysconfig('user.code_login'); ?>
                                <input type="radio" name="code_login" lay-filter="code_login" lay-verify="otherReq"  value="0" title="关闭"  {if
                                       condition="$code_login eq 0" }checked{/if}>
                                <input type="radio" name="code_login" lay-filter="code_login" lay-verify="otherReq"  value="1" title="邮箱验证码"  {if
                                       condition="$code_login eq 1" }checked{/if}>
                                <input type="radio" name="code_login" lay-filter="code_login" lay-verify="otherReq"  value="2" title="手机验证码"  {if
                                       condition="$code_login eq 2" }checked{/if}>
                                <input type="radio" name="code_login" lay-filter="code_login" lay-verify="otherReq"  value="3" title="邮箱/邮箱验证码"  {if
                                       condition="$code_login eq 3" }checked{/if}>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">验证码登录时直接注册新用户</label>
                            <div class="layui-input-block">
                                <?php $codelogin_add_new=sysconfig('user.codelogin_add_new'); ?>
                                <input type="radio" name="codelogin_add_new" value="1" title="开启" {if
                                       condition="$codelogin_add_new eq 1" }checked{/if}>
                                <input type="radio" name="codelogin_add_new" value="0" title="关闭" {if
                                       condition="$codelogin_add_new eq 0" }checked{/if}>
                            </div>

                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">同一IP注册间隔(分钟)</label>
                            <div class="layui-input-inline">
                                <input type="number" name="register_interval" value="{:sysconfig('user.register_interval')}" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">同一IP一天注册限制</label>
                            <div class="layui-input-inline">
                                <input type="number" name="ip_register_max" value="{:sysconfig('user.ip_register_max')}"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">用户名修改天数限制</label>
                            <div class="layui-input-inline">
                                <input type="number" name="username_change_days" value="{:sysconfig('user.username_change_days')}"  autocomplete="off" class="layui-input">
                            </div>
                            <div>设置0，则随便修改</div>
                        </div>
                        <div class="hr-line"></div>
                        <div class="submit-info text-center">
                            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
                            <a class="layui-btn layui-btn-primary layui-btn-sm" layform-close>关闭</a>
                        </div>

                    </form>
                </div>

            </div>
        </div>

    </div>
</div>